<?php /* Smarty version 2.6.16, created on 2007-05-16 14:28:57
         compiled from GuestBook.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'date_format', 'GuestBook.tpl', 24, false),)), $this); ?>
<?php if ($this->_tpl_vars['deleted']): ?>
<p class="block"><?php echo $this->_tpl_vars['deleted']; ?>
</p>
<?php endif; ?>

<?php if ($this->_tpl_vars['noResults']): ?>
<p class="block"><?php echo $this->_tpl_vars['noResults']; ?>
</p>
<?php else: ?>

<?php if ($this->_tpl_vars['pager']): ?>
<div class='pager'>
<?php echo $this->_tpl_vars['pager']->links; ?>

</div>
<?php endif; ?>
<?php $_from = $this->_tpl_vars['entries']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['entry']):
?>

<div class="comment">
<div class="commentHead <?php if ($this->_tpl_vars['entry']['idOwner'] == $this->_tpl_vars['idOwner']): ?>owner<?php endif; ?>">

<?php if ($this->_tpl_vars['entry']['avatarURL']): ?>
<img src="<?php echo $this->_tpl_vars['entry']['avatarURL']; ?>
" width="20px" height="20px"></img>
<?php else: ?>
<img src="<?php echo $this->_tpl_vars['filepath']; ?>
/file/peopletab/image/avatar.gif" width="20px" height="20px"></img>
<?php endif; ?>
<a href="<?php echo $this->_tpl_vars['entry']['domain']; ?>
/<?php echo $this->_tpl_vars['entry']['userName']; ?>
/Profile"><?php echo $this->_tpl_vars['entry']['userName']; ?>
</a> | <?php echo ((is_array($_tmp=$this->_tpl_vars['entry']['dateAdded'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%A, %B %e, %Y %I:%M %p") : smarty_modifier_date_format($_tmp, "%A, %B %e, %Y %I:%M %p")); ?>

<?php if ($this->_tpl_vars['user']->userStatus == OWNER_USER_STATUS): ?>
<a class="commentDel" href="<?php echo $this->_tpl_vars['uriPath']; ?>
/<?php echo $this->_tpl_vars['request']->ownerName; ?>
/GuestBook/?delete=<?php echo $this->_tpl_vars['entry']['idGuestBook']; ?>
">[Delete Comment]</a>
<?php endif; ?>
</div>
<div class="commentBody"><?php echo $this->_tpl_vars['entry']['message']; ?>
</div>
</div>

<?php endforeach; endif; unset($_from); ?>

<?php if ($this->_tpl_vars['pager']): ?>
<div class='pager'>
<?php echo $this->_tpl_vars['pager']->links; ?>

</div>
<?php endif; ?>
<?php endif; ?>


<?php if ($this->_tpl_vars['user']->userStatus == OWNER_USER_STATUS || $this->_tpl_vars['user']->userStatus == NORMAL_USER_STATUS): ?>
<div id="commentForm">
<form <?php echo $this->_tpl_vars['form']['attributes']; ?>
>
<?php echo $this->_tpl_vars['form']['hidden']; ?>

<?php echo $this->_tpl_vars['form']['message']['html']; ?>

<center><?php echo $this->_tpl_vars['form']['btnSubmit']['html']; ?>
</center>
</form>
</div>

<?php endif; ?>